package com.mdd.common.enums;

import lombok.Data;

/**
 * 账单类型
 * @Description
 * @Author 幻速
 * @Date 2023/11/28 13:27
 **/
public enum ExpenseTypeEnum {
    //费用类型：1、收入 2、支出
    EXPENSE_TYPE_INCOME(1, "收入"),
    EXPENSE_TYPE_EXPENDITURE(2, "支出");

    /**
     * 构造方法
     */
    private final int code;
    private final String msg;
    ExpenseTypeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    /**
     * 获取状态码
     *
     * @author fzr
     * @return Long
     */
    public int getCode() {
        return this.code;
    }

    /**
     * 获取提示
     *
     * @author fzr
     * @return String
     */
    public String getMsg() {
        return this.msg;
    }
}
